package com.codegenerate.demo.mapper.querys;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codegenerate.demo.entity.SysClass;

public class SysClassQuery extends QueryWrapper<SysClass> {
    private  SysClassQuery query;

    public SysClassQuery getQuery() {
        return query;
    }

    public void setQuery(SysClassQuery query) {
        this.query = query;
    }



    public SysClassQuery SysClassQuery() {
        this.query =  new SysClassQuery();;
        return this;
    }

    public QueryWrapper<SysClass> setByParentId(long parentId){
        this.query.eq("parent_id", parentId);
        return this;
    }
}
